package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastGoodsSellOutStatus implements Serializable {
    //  外卖商品配送状态
    private Integer id;

    private Integer businessid;//商家ID

    private String businessname;//商家名

    private Date createtime;//创建时间

    private Integer goodssellid;

    private String goodssellname;

    private String goodssellrecordcode;//商品订单编号

    private Integer goodssellrecordid;//商品订单ID

    private String goodssellrecordname;//商品订单名

    private Integer operationid;//  操作人id

    private String operationname;//  操作人

    private Integer sort;//    订单状态编码 -1：订单取消  0：客户下单，1：客户已付款  2：商家接单  3：骑手接单   4：商品打包 ，5：商品配送 6：商品送达，7:确认收货 ，8：订单完成，9:骑手到达

    private Integer type;//  操作人类型 0：后台管理员，1：商家  ，2:快递员  ，3：用户,4:代理商

    private String statstr;// 订单状态

    /**
     * 状态描述，比如异常状态原因
     */
    private String description;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastGoodsSellOutStatus withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastGoodsSellOutStatus withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public String getBusinessname() {
        return businessname;
    }

    public RunfastGoodsSellOutStatus withBusinessname(String businessname) {
        this.setBusinessname(businessname);
        return this;
    }

    public void setBusinessname(String businessname) {
        this.businessname = businessname == null ? null : businessname.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastGoodsSellOutStatus withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getGoodssellid() {
        return goodssellid;
    }

    public RunfastGoodsSellOutStatus withGoodssellid(Integer goodssellid) {
        this.setGoodssellid(goodssellid);
        return this;
    }

    public void setGoodssellid(Integer goodssellid) {
        this.goodssellid = goodssellid;
    }

    public String getGoodssellname() {
        return goodssellname;
    }

    public RunfastGoodsSellOutStatus withGoodssellname(String goodssellname) {
        this.setGoodssellname(goodssellname);
        return this;
    }

    public void setGoodssellname(String goodssellname) {
        this.goodssellname = goodssellname == null ? null : goodssellname.trim();
    }

    public String getGoodssellrecordcode() {
        return goodssellrecordcode;
    }

    public RunfastGoodsSellOutStatus withGoodssellrecordcode(String goodssellrecordcode) {
        this.setGoodssellrecordcode(goodssellrecordcode);
        return this;
    }

    public void setGoodssellrecordcode(String goodssellrecordcode) {
        this.goodssellrecordcode = goodssellrecordcode == null ? null : goodssellrecordcode.trim();
    }

    public Integer getGoodssellrecordid() {
        return goodssellrecordid;
    }

    public RunfastGoodsSellOutStatus withGoodssellrecordid(Integer goodssellrecordid) {
        this.setGoodssellrecordid(goodssellrecordid);
        return this;
    }

    public void setGoodssellrecordid(Integer goodssellrecordid) {
        this.goodssellrecordid = goodssellrecordid;
    }

    public String getGoodssellrecordname() {
        return goodssellrecordname;
    }

    public RunfastGoodsSellOutStatus withGoodssellrecordname(String goodssellrecordname) {
        this.setGoodssellrecordname(goodssellrecordname);
        return this;
    }

    public void setGoodssellrecordname(String goodssellrecordname) {
        this.goodssellrecordname = goodssellrecordname == null ? null : goodssellrecordname.trim();
    }

    public Integer getOperationid() {
        return operationid;
    }

    public RunfastGoodsSellOutStatus withOperationid(Integer operationid) {
        this.setOperationid(operationid);
        return this;
    }

    public void setOperationid(Integer operationid) {
        this.operationid = operationid;
    }

    public String getOperationname() {
        return operationname;
    }

    public RunfastGoodsSellOutStatus withOperationname(String operationname) {
        this.setOperationname(operationname);
        return this;
    }

    public void setOperationname(String operationname) {
        this.operationname = operationname == null ? null : operationname.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public RunfastGoodsSellOutStatus withSort(Integer sort) {
        this.setSort(sort);
        return this;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getType() {
        return type;
    }

    public RunfastGoodsSellOutStatus withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getStatstr() {
        return statstr;
    }

    public RunfastGoodsSellOutStatus withStatstr(String statstr) {
        this.setStatstr(statstr);
        return this;
    }

    public void setStatstr(String statstr) {
        this.statstr = statstr == null ? null : statstr.trim();
    }

    public String getDescription() {
        return description;
    }

    public RunfastGoodsSellOutStatus withDescription(String description) {
        this.setDescription(description);
        return this;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", businessid=").append(businessid);
        sb.append(", businessname=").append(businessname);
        sb.append(", createtime=").append(createtime);
        sb.append(", goodssellid=").append(goodssellid);
        sb.append(", goodssellname=").append(goodssellname);
        sb.append(", goodssellrecordcode=").append(goodssellrecordcode);
        sb.append(", goodssellrecordid=").append(goodssellrecordid);
        sb.append(", goodssellrecordname=").append(goodssellrecordname);
        sb.append(", operationid=").append(operationid);
        sb.append(", operationname=").append(operationname);
        sb.append(", sort=").append(sort);
        sb.append(", type=").append(type);
        sb.append(", statstr=").append(statstr);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}